<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>flex项的border影响</title>
    <style>
      .parent {
        display: flex;
        flex-direction: row;
        justify-content: center;
        align-items: center;
        width: 400px;
        height: 400px;
      }

      .child {
        border: 10px solid blue;
        width: 200px;
        height: 100%;
        background-color: #2ec9d455;
        flex: 0 1 auto;
      }

      .child:last-child {
        border: 10px solid rgb(64, 214, 9);
      }
    </style>
  </head>
  <body>
    <div class="parent">
      <div class="child"></div>
      <div class="child"></div>
    </div>
  </body>
</html>
